# one 
def out():
    a = 10 
    c = 12
    def inc():        
        q = 32 + a
        return q
    
    
    
out()

#two 
def a1():
    qq = 100
    global q1
    q1 = 101
    return qq,q1

def b1():
    global q1
    bb = a1()
    print(bb,q1)

b1()

#thr
class A():

    test1 = 1000

    def __init__(self,test2):
        self.test2 = test2

    def A1(self):
        q2 = 200
        test2 = self.test2
        qtest = A.test1
        print(qtest,test2)
        return q2

    def A2(self):
        test2 = self.test2
        q3 = self.A1()
        print(q3,test2)

if __name__=='__main__':
    w = A(2000)
    w.A1()
    w.A2()

